package cn.studyjava.verify.model;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * Description:图形验证码
 * </p>
 * 
 * @author: zsljava
 * @version 1.0.0
 * <p>
 * History:
 * -----------------------------------------------
 * @Date: 2017年10月18日 下午2:31:20
 * @author: zsljava
 * @version 1.0.0
 * @OP: Create
 * -----------------------------------------------
 * </p>
 *
 * @since
 * @see
 */
/**
 * <p>
 * Description:
 * </p>
 * 
 * @author: zsljava
 * @version 1.0.0
 * <p>
 * History:
 * -----------------------------------------------
 * @Date: 2017年10月18日 下午2:36:00
 * @author: zsljava
 * @version 1.0.0
 * @OP: Create
 * -----------------------------------------------
 * </p>
 *
 * @since
 * @see
 */
public class ImageVerify implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 图形验证码创建时间
	 */
	private Date createTime;					 

	/**
	 * 拖拉的X
	 */
	private Integer x;							 

	/**
	 * 拖拉的Y
	 */
	private Integer y;							 

	/**
	 * 最大偏移量
	 */
	private Integer offset;						 

	/**
	 * 验证码Code
	 */
	private String verifyCode;				 

	/**
	 * 原图
	 */
	private String original;				 

	/**
	 * 破图坐标点
	 */
	private String point;					 

	/**
	 * 补图的宽度
	 */
	private Integer repairWidth;				 

	/**
	 * 补图的高度
	 */
	private Integer repairHeight;			 

	/**
	 * 验证开始时间
	 */
	private Date verifyStartTime;           

	/**
	 * 破图
	 */
	private String wholeImg;               

	/**
	 * 补图
	 */
	private String repairImg;			   

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getX() {
		return x;
	}

	public void setX(Integer x) {
		this.x = x;
	}

	public Integer getY() {
		return y;
	}

	public void setY(Integer y) {
		this.y = y;
	}

	public Integer getOffset() {
		return offset;
	}

	public void setOffset(Integer offset) {
		this.offset = offset;
	}

	public String getVerifyCode() {
		return verifyCode;
	}

	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}

	public String getOriginal() {
		return original;
	}

	public void setOriginal(String original) {
		this.original = original;
	}

	public String getPoint() {
		return point;
	}

	public void setPoint(String point) {
		this.point = point;
	}

	public Integer getRepairWidth() {
		return repairWidth;
	}

	public void setRepairWidth(Integer repairWidth) {
		this.repairWidth = repairWidth;
	}

	public Integer getRepairHeight() {
		return repairHeight;
	}

	public void setRepairHeight(Integer repairHeight) {
		this.repairHeight = repairHeight;
	}

	public Date getVerifyStartTime() {
		return verifyStartTime;
	}

	public void setVerifyStartTime(Date verifyStartTime) {
		this.verifyStartTime = verifyStartTime;
	}

	public String getWholeImg() {
		return wholeImg;
	}

	public void setWholeImg(String wholeImg) {
		this.wholeImg = wholeImg;
	}

	public String getRepairImg() {
		return repairImg;
	}

	public void setRepairImg(String repairImg) {
		this.repairImg = repairImg;
	}

	/**
	 * @Title: hashCode
	 * @return
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((offset == null) ? 0 : offset.hashCode());
		result = prime * result + ((original == null) ? 0 : original.hashCode());
		result = prime * result + ((point == null) ? 0 : point.hashCode());
		result = prime * result + ((repairHeight == null) ? 0 : repairHeight.hashCode());
		result = prime * result + ((repairImg == null) ? 0 : repairImg.hashCode());
		result = prime * result + ((repairWidth == null) ? 0 : repairWidth.hashCode());
		result = prime * result + ((verifyCode == null) ? 0 : verifyCode.hashCode());
		result = prime * result + ((verifyStartTime == null) ? 0 : verifyStartTime.hashCode());
		result = prime * result + ((wholeImg == null) ? 0 : wholeImg.hashCode());
		result = prime * result + ((x == null) ? 0 : x.hashCode());
		result = prime * result + ((y == null) ? 0 : y.hashCode());
		return result;
	}

	/**
	 * @Title: equals
	 * @param obj
	 * @return
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		ImageVerify other = (ImageVerify) obj;
		if (createTime == null) {
			if (other.createTime != null) {
				return false;
			}
		} else if (!createTime.equals(other.createTime)) {
			return false;
		}
		if (offset == null) {
			if (other.offset != null) {
				return false;
			}
		} else if (!offset.equals(other.offset)) {
			return false;
		}
		if (original == null) {
			if (other.original != null) {
				return false;
			}
		} else if (!original.equals(other.original)) {
			return false;
		}
		if (point == null) {
			if (other.point != null) {
				return false;
			}
		} else if (!point.equals(other.point)) {
			return false;
		}
		if (repairHeight == null) {
			if (other.repairHeight != null) {
				return false;
			}
		} else if (!repairHeight.equals(other.repairHeight)) {
			return false;
		}
		if (repairImg == null) {
			if (other.repairImg != null) {
				return false;
			}
		} else if (!repairImg.equals(other.repairImg)) {
			return false;
		}
		if (repairWidth == null) {
			if (other.repairWidth != null) {
				return false;
			}
		} else if (!repairWidth.equals(other.repairWidth)) {
			return false;
		}
		if (verifyCode == null) {
			if (other.verifyCode != null) {
				return false;
			}
		} else if (!verifyCode.equals(other.verifyCode)) {
			return false;
		}
		if (verifyStartTime == null) {
			if (other.verifyStartTime != null) {
				return false;
			}
		} else if (!verifyStartTime.equals(other.verifyStartTime)) {
			return false;
		}
		if (wholeImg == null) {
			if (other.wholeImg != null) {
				return false;
			}
		} else if (!wholeImg.equals(other.wholeImg)) {
			return false;
		}
		if (x == null) {
			if (other.x != null) {
				return false;
			}
		} else if (!x.equals(other.x)) {
			return false;
		}
		if (y == null) {
			if (other.y != null) {
				return false;
			}
		} else if (!y.equals(other.y)) {
			return false;
		}
		return true;
	}

	/**
	 * @Title: toString
	 * @return
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ImageVerify [createTime=" + createTime + ", x=" + x + ", y=" + y + ", offset=" + offset
				+ ", verifyCode=" + verifyCode + ", original=" + original + ", point=" + point + ", repairWidth="
				+ repairWidth + ", repairHeight=" + repairHeight + ", verifyStartTime=" + verifyStartTime
				+ ", wholeImg=" + wholeImg + ", repairImg=" + repairImg + "]";
	}

	
}
